package com.nariano.webapp;

import org.apache.wicket.Request;
import org.apache.wicket.Response;
import org.apache.wicket.Session;
import org.apache.wicket.protocol.http.HttpSessionStore;
import org.apache.wicket.protocol.http.WebApplication;
import org.apache.wicket.session.ISessionStore;

/**
 * Application object for your web application. If you want to run this application without deploying, run the Start class.
 * 
 * @see wicket.myproject.Start#main(String[])
 */
public class WicketApplication extends WebApplication
{    

    /**
     * Constructor
     */
	public WicketApplication()
	{
	    
	}
	
	/**
	 * @see wicket.Application#getHomePage()
	 */
	public Class getHomePage()
	{
	    return Index.class;
	}

    @Override
    public Session newSession(Request request, Response response) {
        return new NarianoSession(this, request);
    }

	@Override
	protected void init() {
		super.init();
		getResourceSettings().setResourcePollFrequency(null); // google app engine  Disable resource modification watching
	}

	@Override
	protected ISessionStore newSessionStore() {
		return new HttpSessionStore(this);  // google app engine Disable SecondLevelCacheSessionStore
	}
    
    
    
	
	
}
